package com.mz361.modules.system.repository;

import com.mz361.modules.system.domain.CMember;
import org.springframework.data.jpa.repository.Query;

/**
 * @author liaomch
 * @ date 2024/05/07
 */
public interface CMemberRepository extends BaseRepository<CMember, Long> {

    CMember findCMemberByIdCode(String idCode);

    CMember findByPhone(String phone);

    @Query(value = "select count(o.id) FROM CMember o")
    Long countAll();
}